change from python 2 to python 3 您所在的位置:网站首页 python 2 to 3 changes change from python 2 to python 3

change from python 2 to python 3

#change from python 2 to python 3| 来源: 网络整理| 查看: 265

wecker wrote: ↑Fri Jul 09, 2021 9:33 pm Hello, how can I change from python2 to python3 as default python? I have problems with this command: import RPi.GPIO as GPIO ImportError: No module named RPi.GPIO“ Somebody sad as a solution to switch from version 2 to version python3. But I do not know how to do it ... thank you from vienna Wecker Gerhard

pi@solaranzeige:~ $ find /usr/ ~/ -name RPi /usr/lib/python2.7/dist-packages/RPi /usr/lib/python3/dist-packages/RPi /usr/local/lib/python2.7/dist-packages/RPi /home/pi/RPi.GPIO-0.5.6/RPi /home/pi/RPi.GPIO-0.5.6/build/lib.linux-armv7l-2.7/RPi

pi@solaranzeige:~ $ apt policy python-rpi.gpio python-rpi.gpio: Installiert: 0.7.0-0.1~bpo10+4 Installationskandidat: 0.7.0-0.1~bpo10+4 Versionstabelle: *** 0.7.0-0.1~bpo10+4 500 500 http://archive.raspberrypi.org/debian buster/main armhf Packages 100 /var/lib/dpkg/status 0.6.5-1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有